<script>
    $(function() {
        $("a").button();
        $("a").click(function() { return true; });
    });
</script>
<div style="width: 100%;height: 100%;background-color:#222222" align="center">
    <div style="width: 80%;height: 100%;background-color:#eeeeee" align="center" class="ui-widget ui-corner-all">
<div style="width: 100%;padding: 10px" align="left"><a href="<?php echo url::base()?>/admin/doctor">กลับ</a></div>
    <br>
<form method="post" action="<?php URL::base()?>doctor_edit" target="">
    <table width="500" class="ui-widget ui-widget-content ui-corner-all" cellspacing="0" cellpadding="3">
            <thead><tr class="ui-widget-header"><td colspan="5">แก้ไขข้อมูล</td></tr></thead>
            <tbody align="left">
                <tr><td valign="top" style="padding-left: 10px">ชื่อ - นามสกุล</td><td><input name="consult_doctor_name" type="text" value="<?php echo isset($doctor['consult_doctor_name'])?$doctor['consult_doctor_name']:"" ?>"> </td></tr>
                <tr><td valign="top" style="padding-left: 10px">โรงพยาบาล</td><td><input type="text" id="consult_doctor_hospital" name="consult_doctor_hospital" value="<?php echo isset($doctor['consult_doctor_hospital'])?$doctor['consult_doctor_hospital']:""?>"> </td></tr>
                <tr><td valign="top" style="padding-left: 10px">IP camera</td><td><input type="text" id="consult_url" name="consult_url" value="<?php echo isset($doctor['consult_url'])?$doctor['consult_url']:"" ?>"> </td></tr>
                <tr><td valign="top" style="padding-left: 10px">เบอร์โทรศัพท์</td><td><input type="text" id="consult_tel" name="consult_tel" value="<?php echo isset($doctor['consult_tel'])?$doctor['consult_tel']:"" ?>"> </td></tr>
                <tr><td valign="top" style="padding-left: 10px">อีเมล์</td><td><input type="text" id="consult_email" name="consult_email" value="<?php echo isset($doctor['consult_email'])?$doctor['consult_email']:"" ?>"> </td></tr>
                <tr><td align="center" colspan="2"><input class="ui-button ui-widget ui-state-default ui-corner-all" type="submit" value="แก้ไข">
                        
                    </td></tr>
                <tr><td colspan="8" align="left" style="color: blue"><?php echo $message ?></td></tr>
            </tbody>
        </table>
        <input type="hidden" value="<?php echo $consult_doctor_id ?>" name="consult_doctor_id">
        <input type="hidden" value="edit" name="method">
    </form>
</div>
</div>